<template>
  <div class="app">
    <button @click="showLog">测试</button>
    <person-v3 ref="ren"></person-v3>
  </div>
</template>

<script lang="ts" setup name="App">
import personV3 from "@/components/PersonV3.vue";
import { ref } from 'vue';
let ren = ref();
function showLog() {
  console.log(ren.value);
}

</script>

<style scoped>
.app {
  background-color: gray;
  box-shadow: 0 0 10px;
  border-radius: 10px;
  padding: 20px;
}
</style>